package com.xu.mall.base.category.model;

import java.io.Serializable;

import com.xu.mall.base.common.Constants;
import com.xu.mall.base.tree.entity.BaseTreeEntity;

/**
 * 自定义分类
 * 
 * @version Revision History
 * 
 *          <pre>
 * Author     Version       Date        Changes
 * lunan.xu   1.0           2012-10-21  Created
 * 
 * </pre>
 * @since 1.
 */
public class Category extends BaseTreeEntity implements ICategory, Serializable {
	private static final long serialVersionUID = 2308474673441097713L;

	@Override
	public void setCode(String code) {
		this.code = code.startsWith(Constants.CodePrefix.Category) ? code : Constants.CodePrefix.Category + code;
	}
}
